<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
       /*  {
            const b = '123';
        }
        console.log(b); */

        /* const team = ['A','B','C','D'];
        // team.push('E');
        team = 'E'; */

        /* const team = ['A','B','C','D'];
        var [a,b,c,d] = team;
        console.log(a);
        console.log(b);
        console.log(c);
        console.log(d); */

        const su ={
            name:'苏槿年',
            age:18,
            sex:function(){
                console.log("性别：男");
            }
        };
        /* let {name,age,sex} = su;
        console.log(name);
        console.log(age);
        console.log(sex); */

        let{sex} = su;
        sex();
    </script>
</body>
</html>